<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>打包记录 - {$tp_config.shop_info_store_name}</title>
        <link rel="stylesheet" href="__STATIC__/index/css/font.css">
        <link rel="stylesheet" href="__STATIC__/index/layui/css/layui.css?t=1527238724161">
        <link rel="stylesheet" href="__STATIC__/index/css/global.css" charset="utf-8">
    </head>
    <body>
        <include file="public/header"/>
        <div class="layui-container fly-marginTop fly-user-main">
            <include file="public/left"/>
            <div class="site-tree-mobile layui-hide">
                <i class="layui-icon">&#xe602;</i>
            </div>
            <div class="site-mobile-shade"></div>
            <div class="fly-panel fly-panel-user" pad20>
                <div class="layui-tab layui-tab-brief" lay-filter="pack">
                    <ul class="layui-tab-title">
                        <li class="layui-this" lay-id="{:url('Pack/packList')}">面单列表</li>
                        <!-- <li lay-id="{:url('Pack/goodsList')}">商品列表</li> -->
                        <li lay-id="{:url('Pack/packAdd')}">新增打包</li>
                    </ul>
                    <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 5px 0;">
                        <div class="layui-tab-item layui-show">
                            <!-- <form action="" class="layui-form" method="POST" > -->
                                <div class="layui-form-item" style="margin: 10px 0 0;">

                                    <div class="layui-input-inline">
                                        <input class="layui-input" name="pack_number" id="pack_number" autocomplete="off" placeholder="面单筛选">
                                    </div>

                                    <div class="layui-input-inline">
                                      <select name="pack_status" lay-filter="pack_status" id="pack_status">
                                        <option value="">订单状态</option>
                                        <option value="0">未确认</option>
                                        <option value="1">已确认</option>
                                        <option value="2">已签收</option>
                                        <option value="3">已发货</option>
                                        <!-- <option value="4">已完成</option> -->
                                        <option value="5">已作废</option>
                                      </select>
                                    </div>

                                    <div class="layui-input-inline">
                                      <select name="platform_code" lay-filter="platform_code" id="platform_code">
                                        <option value="">平台</option>
                                        <foreach name="fromList" item="vo">
                                        <option value="{$key}">{$vo.name}</option>
                                        </foreach>
                                      </select>
                                    </div>
                                    <button class="layui-btn" data-type="reload">搜索</button>
                                    <button class="layui-btn" data-type="getCheckData">批量支付</button>
                                </div>
                            <!-- </form> -->

                            <table id="LAZADA_PackList"  lay-filter="packList" ></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="public/footer">
        <script src="__STATIC__/index/js/user.js"></script>
        <script type="text/html" id="timeTpl">
            {{#  
              var getDatefun = function(data){
                if(data){
                    var date = new Date(data*1000);
                    var Y = date.getFullYear() + '-';
                    var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-';
                    var D = date.getDate() + ' ';
                    var h = date.getHours() + ':';
                    var m = date.getMinutes() + ':';
                    var s = date.getSeconds();
                    return Y+M+D+h+m+s;
                }
              }; 
            }}
            {{getDatefun(d.create_time)}}
        </script>
        
        <script type="text/html" id="packNumberTpl">
            {{d.pack_number}}<i class="layui-icon layui-icon-edit"></i>
        </script>
        <script type="text/html" id="fileTpl">
            <a href="{{d.pack_file}}" target="_blank" style="color:#5FB878">查看</a>
        </script>
        
       <!--  <script type="text/html" id="parkBar">
          {{#  if(d.pay_status !=1&&d.pack_status !=5){ }}
          <a class="llayui-btn layui-btn-xs" lay-event="pay" lay-filter="pack" style="color:#01AAED">支付</a>
          {{#  } }}
          {{#  if(d.pack_status == 0){ }}
          <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="cancel" lay-filter="pack" style="color:#01AAED">取消</a>
          {{#  } }}
          <a class="llayui-btn layui-btn-primary layui-btn-xs" lay-event="detail" lay-filter="pack" style="color:#01AAED">详情</a>
        </script> -->

        <script type="text/html" id="parkBar">
          {{#  if(d.pay_status !=1&&d.pack_status !=5){ }}
          <a class="layui-btn layui-btn-xs" lay-event="pay">支付</a>
          {{#  } }}
          {{#  if(d.pack_status == 0){ }}
          <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="cancel">取消</a>
          {{#  } }}
          <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">详情</a>
          
         
        </script>
    </body> 
</html>
